package com.anolesoft.twelveFactory.planManagement.mapper;

import com.anolesoft.twelveFactory.planManagement.dto.PlanissuedDto;
import com.anolesoft.twelveFactory.planManagement.entity.PlanIssued;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface PlanIssuedMapper {

//    查询全部
    List<PlanIssued> listPlanIssued(@Param("planissuedDto") PlanissuedDto planissuedDto, Page<PlanIssued> page );

//    查询全部不带条件
    List<PlanIssued> listPlanIssued2();

    //    查询全部
    List<PlanIssued> listToThePlan(@Param("planissuedDto") PlanissuedDto planissuedDto, Page<PlanIssued> page );

    //    查询全部不带条件
    List<PlanIssued> listToThePlan2();

    //    查询全部
    List<PlanIssued> listBayPlan(@Param("planissuedDto") PlanissuedDto planissuedDto, Page<PlanIssued> page );

    //    查询全部不带条件
    List<PlanIssued> listBayPlan2();

    // 修改
    Integer Update(PlanissuedDto planissuedDto);

    // 修改
    Integer Update(PlanIssued planIssued);

//    通过ojbuid查询
    PlanIssued selectById(String objuid);

//    通过objuidgyjh查询
    List<PlanIssued> selectByObjuidgyjh(String objuidgyjh);


//    通过th,khrq查询
    PlanIssued selectByTh(@Param("th") String th,@Param("khrq")Date khrq);

//    通过wyzd,khrq查询
    PlanIssued selectByWYZD(@Param("wyzd")String wyzd,@Param("khrq")Date khrq);

    //    listToThePlan
    PlanIssued selectByTh1(@Param("th") String th,@Param("khrq")Date khrq);
    PlanIssued selectByWYZD1(@Param("wyzd")String wyzd,@Param("khrq")Date khrq);

    //    listBayPlan
    PlanIssued selectByTh2(@Param("th") String th,@Param("khrq")Date khrq);
    PlanIssued selectByWYZD2(@Param("wyzd")String wyzd,@Param("khrq")Date khrq);


    Integer insert(PlanIssued planIssued);
}
